package com.example.flowable.model.enummodel;

/**
 * @Classname TableFieldTypeEnum
 * @Description TODO
 * @Date 2022/8/16 22:57
 * @Created by XiongXiong
 * @Author: X.I.O
 */
public enum  TableFieldTypeEnum {
    //字符串
    VQRCHAR("可变长字符串","varchar",255,false),
    //长文本
    LONGTEXT("长文本","longtext",0,false),
    //日期时间
    DATETIME("日期时间","datetime",0,false),
    //小数
    DECIMAL("小数","decimal",65,true),
    //双精度数值
    DOUBLE("双精度数值","double",10,true),
    //浮点型数值
    FLOAT("浮点型数值","float",10,true),
    //int数字
    INT("整数型数值","int",10,false);


    ;

    private String name;

    private String fieldType;

    private Integer fieldLength;

    private boolean isPoint;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getFieldType() {
        return fieldType;
    }

    public void setFieldType(String fieldType) {
        this.fieldType = fieldType;
    }

    public Integer getFieldLength() {
        return fieldLength;
    }

    public void setFieldLength(Integer fieldLength) {
        this.fieldLength = fieldLength;
    }

    public boolean isPoint() {
        return isPoint;
    }

    public void setPoint(boolean point) {
        isPoint = point;
    }

    TableFieldTypeEnum(String name, String fieldType, Integer fieldLength, boolean isPoint) {
        this.name = name;
        this.fieldType = fieldType;
        this.fieldLength = fieldLength;
        this.isPoint = isPoint;
    }
}
